import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { Step1Component } from './step1/step1.component';
import { RouterModule, Routes } from "@angular/router";
import { JokeService } from './joke.service';
import { JokeListComponent } from './joke-list/joke-list.component';
import { HttpClientModule } from "@angular/common/http";
import { MatCardModule } from "@angular/material";

const appRoutes: Routes = [
  {path: 'step1', component: Step1Component}
];

@NgModule({
  declarations: [
    AppComponent,
    Step1Component,
    JokeListComponent
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    HttpClientModule,
    MatCardModule,
    RouterModule.forRoot(appRoutes, {enableTracing: true})
  ],
  providers: [
    JokeService
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
